#!/usr/bin/env python3
# coding: utf-8

import cv2
from PIL import Image
def canny_test():
    raw_ = cv2.imread("../res/111.jpg")
    raw = cv2.cvtColor(raw_,cv2.COLOR_BGR2RGB)
    raw_gray = cv2.cvtColor(raw,cv2.COLOR_RGB2GRAY)
    edges = cv2.Canny(raw_gray,125,350)
    image1 = Image.fromarray(raw.astype('uint8')).convert('RGB')
    display(image1)
    image2 = Image.fromarray(edges.astype('uint8')).convert('RGB')
    display(image2)
canny_test()